package com.rj.gpdata.domain.res;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class DataField {

    private String getFieldName(String fn){
        return switch (fn){
            case "f1" -> "open";
            case "f2" -> "close";
            case "f3" -> "high";
            case "f4" -> "low";
            case "f5" -> "volume";
            case "f6" -> "amount";
            case "f9" -> "turnoverRate";
            default -> throw new RuntimeException("未转换的"+fn);

        };
     }
    public static void main(String[] args) {

        for (int i = 1; i <61 ; i++) {
            System.out.println("""
                         /**
                         *
                         */
                        @JsonProperty("")
                        private String f%s;
                    """.formatted(i));
        }
    }

}
